package com.mall.bargain.service;

import com.mall.common.response.CommonResponse;
import com.mall.entity.TbCity;

import com.mall.entity.bargain.BgReceiveAddress;

import java.util.List;

/**
 * 地址服务
 *
 * @author w
 * @date 2021/07/21
 */
public interface IReceiveAddressService {



    /**
     * 添加收货地址
     *
     * @param receiveAddress 接收地址
     * @return {@link CommonResponse}
     */
    CommonResponse addAddress(BgReceiveAddress receiveAddress);


    /**
     * 查询单个城市
     *
     * @param id id
     * @return {@link List<TbCity>}
     */
    List<TbCity> findCity(Integer id);


    /**
     * 查询所有的城市以及下级城市信息
     * @return
     */
    List<TbCity> findAllCity();

    /**
     * 根据收货地址编号查询收货信息
     * @param uid
     * @return
     */
    List<BgReceiveAddress> findAddressByUid(Integer uid);

    /**
     * 查看订单的地址
     * @param id 订单ID
     * @return
     */
    BgReceiveAddress orderAddress(Integer id);
}
